function uniq(a) {
    console.log(a)
    a = a.map(v => v === undefined ? 'fuckubitch' : v)
    return new Set(a).size === 1 ? a[0] : a.length ? (a.join(',') + ',').replace(/(.+,)\1+/g, '$1').replace(/,$/, '').split(',').map(v => v === 'fuckubitch' ? undefined : v) : a
}